﻿using GNU.Gettext;
using System;
using System.Collections.Generic;
using System.Text;

namespace GNUGetTextSeriHelper
{
    class Program
    {
        static void Main(string[] args)
        {
            var mDict = new Dictionary<string, string>();
            var c = new Catalog();
            c.Load(args[0]);
            foreach (var item in c)
            {
                mDict.Add(item.Key, item.GetTranslation(0));
            }

            I18N.Init(mDict);
            I18N.SerializeToFile(args[1]);
        }
    }
}
